﻿using Autofac;

using MiP.Xml.Core;
using MiP.XmlCmd.Shell;


namespace MiP.XmlCmd.IoC
{
    internal class ContainerConfiguration : IContainerConfiguration
    {
        public IContainer Configure()
        {
            ContainerBuilder builder = new ContainerBuilder();

            //builder.RegisterSource(new AnyConcreteTypeNotAlreadyRegisteredSource());

            builder.RegisterModule<ShellModule>();
            builder.RegisterModule<CoreModule>();

            IContainer container = builder.Build();

            return container;
        }
    }
}